<?php echo $this->doctype(); ?>


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl" dir="ltr">
<head>

	<?php echo $this->headMeta(); ?>

	<?php echo $this->headTitle(); ?>
   	<link rel="icon" href="favicon.ico" />
	<link href="css/application.css" rel="stylesheet" type="text/css" />   
	<link href="css/global.css" rel="stylesheet" type="text/css" />  

	<link href="css/<?php echo $this->css; ?>" rel="stylesheet" type="text/css" />  
	
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl(); ?>/js/dijit/themes/claro/claro.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl(); ?>/js/dojo/resources/dojo.css" />
	
	<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/nnbase.js"></script>	
	<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/dojo/dojo.js" djConfig="parseOnLoad: true ,locale: 'pl' "></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/requaire.js"></script>

</head>

<body class="claro">

	<?php if(Zend_Auth::getInstance()->hasIdentity() != null && App_Model_Auth::isAdmin()): ?>
	
		<?php echo $this->render('edit.phtml'); ?>
	<?php endif; ?>  


<div id="kontener">
	<div id='mainbar' >
	<?php echo $this->render('mainbar.phtml'); ?>
	</div>   

	<div id="head" >
	<?php echo $this->render('header.phtml'); ?>
	</div>
	<div id='bodymain'>
		<div style='position:relative;'>
			<div id='body'>
				<?php echo $this->layout()->content; ?>
			</div>
			<?php if(Zend_Auth::getInstance()->hasIdentity() != null && App_Model_Auth::isAdmin()): ?>
			<!--  <div id='bodylock' class='lock'>-->
			<!--	<img src="<?php echo $this->baseUrl(); ?>/images/tryb.png"></img>	-->	
			<!--</div>-->
		<?php endif; ?>  	
		</div>
	</div>
	<div id="footer" >
	<?php echo $this->render('footer.phtml'); ?>
	</div>
	
	
</div>
<?php if(Zend_Auth::getInstance()->hasIdentity() != null && App_Model_Auth::isAdmin()): ?>
	<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/edit.js"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/panel.js"></script>
<?php endif; ?>  
</body>
</html>
